package july.framework.exsolver.demo;

import com.alibaba.fastjson.JSON;
import july.framework.exsolver.demo.eao.BankResolverEAO;
import july.framework.exsolver.demo.entity.BankInfo;
import july.framework.exsolver.handler.ProxyHandler;
import july.framework.exsolver.reader.ResolverReader;

import java.util.List;

public class TestExsolver {


    public static void main(String[] args) {
        // 初始化(系统启动时调用)
        ResolverReader reader = ResolverReader.getInstance();
        reader.read();

        // 获取解析类(spring环境直接注入至spring容器中)
        BankResolverEAO resolver = ProxyHandler.getProxy(BankResolverEAO.class);

        // 开始解析
        List<BankInfo> list = resolver.getYinQiZhiLianTable("D:/test.xlsx");

        System.out.println(JSON.toJSONString(list));
    }
}
